Qualcomm AI Engine Direct - Support Windows native build#20052
Qualcomm AI Engine Direct - Support Windows native build#20052zhaoxul-qti wants to merge 2 commits into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/20052
Note: Links to docs will display an error until the docs builds have been completed.
|
This PR needs a
|
b595f71 to
5bc05b2
Compare
This PR updates the CMake files to enable native Windows builds for the QNN ExecuTorch components. Specifically, it adds support for building both the QNN backend as a Windows dynamic library (.dll) and the corresponding runner executable (.exe). - Extend existing CMake to support native Windows builds. - Enable generation of `qnn_executorch_backend.dll` and `qnn_executor_runner.exe`. - Provide a dedicated build script to simplify and standardize the Windows build process. - The script configures the appropriate CMake options and toolchain settings required for Windows. 1. `.\install_executorch.bat` to build `PyQnnManagerAdaptor*.pyd` and its static library as dependencies. 2. `.\backends\qualcomm\scripts\build.ps1 -SkipArm64Windows -Release` to build Windows x86_64 AOT on Windows x86_64. 3. `.\backends\qualcomm\scripts\build.ps1 -SkipX86Windows -Release` to cross compile and build WoA Runtime on Windows x86_64. - Add PyTorch documentation change.
5bc05b2 to
9b53a31
Compare
|
@claude review |
|
Claude finished @psiddh's task in 2m 28s —— View job Code Review: Qualcomm Windows native build
Overall this is a clean, well-scoped change. The 1.
|
|
There are lint issues. @zhaoxul-qti Can you fix them so that we can merge this PR |
Summary
This PR updates the CMake files to enable native Windows builds for the QNN ExecuTorch components.
Specifically, it adds support for building both the QNN backend as a Windows dynamic library (.dll) and the corresponding runner executable (.exe).
Core Changes
1. CMake Enhancements
qnn_executorch_backend.dllandqnn_executor_runner.exe.2. Build Script Support
Build instructions
.\install_executorch.batto buildPyQnnManagerAdaptor*.pydand its static library as dependencies..\backends\qualcomm\scripts\build.ps1 -SkipArm64Windows -Releaseto build Windows x86_64 AOT on Windows x86_64..\backends\qualcomm\scripts\build.ps1 -SkipX86Windows -Releaseto cross compile and build WoA Runtime on Windows x86_64.Follow-up